chore: add .envrc to .gitignore#237
Conversation
wheeljackz
left a comment
There was a problem hiding this comment.
Quick review: .envrc is the right file to ignore, but I found one missing case in the surrounding env-file rules.
|
|
||
| # Local backup files | ||
| prisma/backups/ | ||
| .envrc |
There was a problem hiding this comment.
*.local.* does not match .env.local, and .env.test is still committable even though the other environment-specific .env.* files are already ignored. Since these files can hold the same local secrets as .envrc, can we widen the ignore rules to cover the remaining local env variants too while still keeping .env.example tracked?
wheeljackz
left a comment
There was a problem hiding this comment.
The .envrc addition looks right. I left one inline note for an adjacent direnv ignore gap.
|
|
||
| # Local backup files | ||
| prisma/backups/ | ||
| .envrc |
There was a problem hiding this comment.
.envrc is the right addition here. Since this repo is using direnv, can we also ignore .direnv/ in the same change? That directory is generated by direnv tooling and can cache environment-derived state, so it is another easy place for local secrets to leak accidentally if it ever appears in the worktree.
Adds
.envrcto.gitignoreto prevent accidentally committing direnv environment files.Also restores deleted
.beads/files (unstaged deletions, not committed).